use askama::Template;
use axum::response::IntoResponse;
use tower_cookies::Cookies;

use super::base::{base, BaseData};
use crate::{template::filters, TemplateResponse};

#[derive(Template)]
#[template(path = "class.html")]
pub struct ClassTemplate {
    base: BaseData,
}
pub async fn index(cookies: Cookies) -> impl IntoResponse {
    let template = ClassTemplate {
        base: base(cookies).await,
    };
    TemplateResponse(template)
}
